<th-canvas (onRender)="this.onBeforeRender()">
  <th-scene>
    <th-ambientLight [intensity]="3" />
    <th-box
      [position]="[0, 0, 0]"
      [material]="material"
      [rotation]="rotation"
      [scale]="selected ? [2, 2, 2] : [1, 1, 1]"
    />

    <th-box3Helper
      [args]="[box, color]"
      [material]="material"
      [position]="[0, 0, 0]"
      (onClick)="selected = !selected"
    />
    <th-gridHelper [args]="[10, 10]" />
    <th-pointLight [position]="[10, 10, 10]" [intensity]="3" [decay]="0" />

    <th-perspectiveCamera [args]="[45, 2, 0.1, 100]" [position]="[10, 10, 10]" [lookAt]="[0, 0, 0]" />
  </th-scene>
</th-canvas>
